import {UPDATE_PAGE_LOADING_STATE} from './mutation_type'
// 异步修改状态
export default {
  /**
   * 全局获取用户基本信息
   * @param commit
   * @returns {Promise<void>}
   */
  globalGetUserInfo({commit}){
    return new Promise(async (resolve, reject) =>{

      let data = {
        head: '',
        nick:'昵称',
      }

      localStorage.head=data.head
      localStorage.nick=data.nick
     // commit(UPDATE_USER_INFO,data)
      resolve(result)
    })
  },
  pageChange({commit},isLoading){
    commit(UPDATE_PAGE_LOADING_STATE,isLoading)
  }
}
